package com.imooc.miaosha.util;

import org.apache.commons.lang3.StringUtils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class ValidatorUtil {
    public static final Pattern MOBILE_PATTERN =Pattern.compile("1\\d(10)");
public static boolean checkIsMobile(String str){
    if (StringUtils.isBlank(str)){
        return false;
    }
    Matcher m=MOBILE_PATTERN.matcher(str);
    return m.matches();
}
}
